package com.example.store.entity;

import java.awt.*;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**收货地址实体类*/
public class Address extends BaseEntity implements Serializable {
        private Integer aid;
        private Integer uid;
        private String name;
        private String provinceName;
        private String provinceCode;
        private String cityName;
        private String cityCode;
        private String areaName;
        private String areaCode;
        private String zip;
        private String address;
        private String phone;
        private String tel;
        private String tag;
        private Integer isDefault;
        private String created_user;
        private Date date_time;
        private String modified_user;
        private Date modified_time;


        public Integer getAid() {
                return aid;
        }

        public void setAid(Integer aid) {
                this.aid = aid;
        }

        public Integer getUid() {
                return uid;
        }

        public void setUid(Integer uid) {
                this.uid = uid;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getProvinceName() {
                return provinceName;
        }

        public void setProvinceName(String provinceName) {
                this.provinceName = provinceName;
        }

        public String getProvinceCode() {
                return provinceCode;
        }

        public void setProvinceCode(String provinceCode) {
                this.provinceCode = provinceCode;
        }

        public String getCityName() {
                return cityName;
        }

        public void setCityName(String cityName) {
                this.cityName = cityName;
        }

        public String getCityCode() {
                return cityCode;
        }

        public void setCityCode(String cityCode) {
                this.cityCode = cityCode;
        }

        public String getAreaName() {
                return areaName;
        }

        public void setAreaName(String areaName) {
                this.areaName = areaName;
        }

        public String getAreaCode() {
                return areaCode;
        }

        public void setAreaCode(String areaCode) {
                this.areaCode = areaCode;
        }

        public String getZip() {
                return zip;
        }

        public void setZip(String zip) {
                this.zip = zip;
        }

        public String getAddress() {
                return address;
        }

        public void setAddress(String address) {
                this.address = address;
        }

        public String getPhone() {
                return phone;
        }

        public void setPhone(String phone) {
                this.phone = phone;
        }

        public String getTel() {
                return tel;
        }

        public void setTel(String tel) {
                this.tel = tel;
        }

        public String getTag() {
                return tag;
        }

        public void setTag(String tag) {
                this.tag = tag;
        }

        public Integer getIsDefault() {
                return isDefault;
        }

        public void setIsDefault(Integer isDefault) {
                this.isDefault = isDefault;
        }

        public String getCreated_user() {
                return created_user;
        }

        public void setCreated_user(String created_user) {
                this.created_user = created_user;
        }

        public Date getDate_time() {
                return date_time;
        }

        public void setDate_time(Date date_time) {
                this.date_time = date_time;
        }

        public String getModified_user() {
                return modified_user;
        }

        public void setModified_user(String modified_user) {
                this.modified_user = modified_user;
        }

        public Date getModified_time() {
                return modified_time;
        }

        public void setModified_time(Date modified_time) {
                this.modified_time = modified_time;
        }


        @Override
        public String toString() {
                return "Address{" +
                        "aid=" + aid +
                        ", uid=" + uid +
                        ", name='" + name + '\'' +
                        ", provinceName='" + provinceName + '\'' +
                        ", provinceCode='" + provinceCode + '\'' +
                        ", cityName='" + cityName + '\'' +
                        ", areaName='" + areaName + '\'' +
                        ", areaCode='" + areaCode + '\'' +
                        ", zip='" + zip + '\'' +
                        ", address='" + address + '\'' +
                        ", phone='" + phone + '\'' +
                        ", tel='" + tel + '\'' +
                        ", tag='" + tag + '\'' +
                        ", isDefault=" + isDefault +
                        ", created_user='" + created_user + '\'' +
                        ", date_time=" + date_time +
                        ", modified_user='" + modified_user + '\'' +
                        ", modified_time=" + modified_time +
                        '}';
        }

        @Override
        public int hashCode() {
                return Objects.hash(super.hashCode(), getAid(), getUid(), getName(), getProvinceName(), getProvinceCode(), getCityName(), getAreaName(), getAreaCode(), getZip(), getAddress(), getPhone(), getTel(), getTag(), getIsDefault(), getCreated_user(), getDate_time(), getModified_user(), getModified_time());
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) return true;
                if (!(o instanceof Address address1)) return false;
                if (!super.equals(o)) return false;
                return Objects.equals(getAid(), address1.getAid()) && Objects.equals(getUid(), address1.getUid()) && Objects.equals(getName(), address1.getName()) && Objects.equals(getProvinceName(), address1.getProvinceName()) && Objects.equals(getProvinceCode(), address1.getProvinceCode()) && Objects.equals(getCityName(), address1.getCityName()) && Objects.equals(getAreaName(), address1.getAreaName()) && Objects.equals(getAreaCode(), address1.getAreaCode()) && Objects.equals(getZip(), address1.getZip()) && Objects.equals(getAddress(), address1.getAddress()) && Objects.equals(getPhone(), address1.getPhone()) && Objects.equals(getTel(), address1.getTel()) && Objects.equals(getTag(), address1.getTag()) && Objects.equals(getIsDefault(), address1.getIsDefault()) && Objects.equals(getCreated_user(), address1.getCreated_user()) && Objects.equals(getDate_time(), address1.getDate_time()) && Objects.equals(getModified_user(), address1.getModified_user()) && Objects.equals(getModified_time(), address1.getModified_time());
        }
}
